package com.wrk._1_语法._04_循环._01_单循环;

public class _012_猴子吃桃 {
    public static void main(String[] args) {
        int sum =1;
        for (int a=1;a<=9;a++){
            sum = (sum+1)*2;
        }System.out.println("总共有"+sum+"个桃子");
    }
}
